package com.cow.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cow.entity.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    List<Map<String,Object>> selectOrdersByUserAccount(String userAccount);

    Map<String,Object> orderOverView();

    List<Map<String, Object>> selectProductTypeChart(String startTime, String endTime);

    List<Map<String, Object>> selectChartDate(String startTime, String endTime);

    Map<String, Object> selectCountAndAmount(String startTime, String endTime);
}
